package com.zhou.system.management.model.vo;

import com.zhou.system.management.entity.SysMenu;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author xianfeng
 * @date 2023/5/9 21:38
 */
@Data
public class SysMenuVo extends SysMenu {

    private List<SysMenuVo> children;

    public void addChild(SysMenuVo child) {
        if (children == null) {
            children = new ArrayList<>();
        }
        children.add(child);
    }
}
